package pojo;

import java.io.Serializable;

public class Chess implements Serializable {
    private int id; //棋子id
    private String style;//棋子样式
    private int price; //棋子价格
    private transient boolean hasChoose;//棋子是否被选中

    public Chess(String style, int price) {
        this.style = style;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Chess{" +
                "id=" + id +
                ", style='" + style + '\'' +
                ", price=" + price +
                ", hasChoose=" + hasChoose +
                '}';
    }

    public int getId() {
        return id;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public boolean isHasChoose() {
        return hasChoose;
    }

    public void setHasChoose(boolean hasChoose) {
        this.hasChoose = hasChoose;
    }
}
